home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / kbdhandl.zip / KEYTEST.C < prev    next >
C/C++ Source or Header  |  1993-08-02  |  593b  |  26 lines

  1. #include <stdio.h>
  2. #include "key.h"
  3.  
  4. main()
  5. {
  6.     printf("Multiple key test program by Patch\n");
  7.     printf("──────────────────────────────────\n");
  8.     printf("Read KEY.DOC for more info.\n");
  9.     printf("The magic key is LEFTSHIFT and KEYPAD8.\n\n");
  10.     printf("Hit any key to start the test (ESC quits) ...\n");
  11.     getch();
  12.  
  13.     Set_New_Int9();
  14.  
  15.     while (1)
  16.     {
  17.         if (keys[kESC] == 1)
  18.             break;
  19.  
  20.         if (keys[kLEFTSHIFT] == 1 && keys[kKEYPAD8] == 1)
  21.             printf("You pressed LEFTSHIFT and KEYPAD8!\n");
  22.     }
  23.  
  24.     Set_Old_Int9();
  25. }
  26.